package com.dao;

import com.bean.Member;
import com.service.core.BaseMapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface MemberMapper  extends BaseMapper<Member,Integer> {
    Member selectByOpenid(String openid);

    Member selectByTel(String tel);

    Member selectByLoginName(String loginName);

    List<Member> findByParaMap(HashMap<String, Object> paraMap);

    Member selectByMerchantId(Integer id);

    int getInferiorsNumByLv(HashMap<String, Object> paraMap);

    List<Member> findInferiors(HashMap<String, Object> paraMap);

    /**
     * 统计首页数据
     * @param paraMap
     * @return
     */
    List<Map> countMember(HashMap<String, Object> paraMap);
}